package com.satan.upload.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.satan.upload.entity.Chunk;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author Demon
* @description 针对表【tb_chunk】的数据库操作Service
* @createDate 2023-09-13 14:28:42
*/
public interface ChunkService extends IService<Chunk> {
    Boolean saveChunk(MultipartFile chunk, String md5, Integer index, Long chunkSize, String resultFileName);

    List<Integer> selectChunkListByMd5(String md5);

    Boolean deleteChunkByMd5(String md5);

    byte[] getChunk(Integer index, Integer chunkSize, String resultFileName,long offset);
}
